﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.JScript.Compiler.ParseTree;

namespace Yuyi.PluginForJS.Addin
{
    public class FunctionExpressionStrategy : IFunctionStrategy
    {
        private FunctionExpression Expression;
        public FunctionExpressionStrategy(Expression expression)
        {
            this.Expression = expression as FunctionExpression;
        }
        #region IFunctionStrategy Members

        public FunctionDefinition GetFunction()
        {
            return Expression.Function;
        }

        #endregion
    }
}
